<?php


namespace App\Services;


class FileService
{
    function image($id, $w = 0, $h = 0)
    {
        if ($id) {
            return url("img/$id/$w/$h");
        } else {
            return $this->defaultImage();
        }
    }

    function defaultImage()
    {
        return url('static/default.png');
    }
}
